package com.bl.weilan.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Data
@Table(name = "trade_policy")
@ApiModel(value = "TradePolicyEntity", description = "政策法规")
@DynamicInsert
@DynamicUpdate
public class TradePolicyEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "行业id")
    @Column(name = "trade_id")
    private String tradeId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "发布时间")
    private Date time;

    @ApiModelProperty(value = "权重")
    private int weight;

    @ApiModelProperty(value = "链接")
    private String url;

    @ApiModelProperty(value = "工信字号")
    private String gongxin;
}
